package 克隆cloneable;

public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Person person1 = new Person(10);
        Person person2 = (Person)person1.clone(); //alt加回车
        System.out.println(person1);
        System.out.println(person2);
        System.out.println(person2.m.money);
        person1.m.money = 15;
        System.out.println(person1.m.money);

    }
}
